using UnityEngine;

public class CustomizationPlayerLoader : MonoBehaviour
{
	public RuntimeAnimatorController animatorController;

	public GameObject playerPrefab;

	private void Awake()
	{
		GameObject gameObject = Object.Instantiate(playerPrefab);
		gameObject.transform.parent = base.transform;
		gameObject.SetActive(true);
		gameObject.transform.localPosition = Vector3.zero;
		gameObject.transform.localRotation = Quaternion.identity;
		gameObject.GetComponent<Animator>().runtimeAnimatorController = animatorController;
		gameObject.GetComponent<Animator>().applyRootMotion = true;
	}
}
